package com.github.wxiaoqi.security.auth.mapper;

import com.github.wxiaoqi.security.auth.entity.Client;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author dzl
 */
public interface ClientMapper extends Mapper<Client> {

    /**
     * 查询允许的客户端
     * @param serviceId
     * @return
     */
    List<String> selectAllowedClient(String serviceId);

    /**
     * 查询鉴权的客户
     * @param clientId
     * @return
     */
    List<Client> selectAuthorityServiceInfo(int clientId);
}